home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 8
/
Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso
/
Aminet
/
dev
/
gui
/
TextLabelImage.lha
/
TextLabel
/
doc
/
textlabel_ic.doc
next >
Wrap
Text File
|
1995-06-26
|
4KB
|
117 lines
TABLE OF CONTENTS
textlabel.image/--datasheet--
textlabel.image/IM_DRAWFRAME
textlabel.image/--datasheet-- textlabel.image/--datasheet--
NAME
textlabel.image -- text labels with underscore support
SUPERCLASS
imageclass
DESCRIPTION
The textlabel.image class is used to create gadget labels.
These are single-lined texts with the gadget shortcut marked
by underlining the appropriate letter.
METHODS
OM_NEW -- Create the text label. Passed to superclass, then OM_SET.
OM_SET -- Set object attributes. Passed to superclass first.
OM_GET -- Get obejct attributes. Passed to superclass first.
OM_UPDATE -- Set object notification attributes. Passed to
superclass first.
IM_DRAW -- Draw the text label. Overrides the superclass.
IM_DRAWFRAME -- Draw text label within a frame. Overrides the
superclass.
All other methods are passed to the superclass, including
OM_DISPOSE.
ATTRIBUTES
For some attributes there are aliases defined.
IA_DATA, TLA_TEXT ( *CHAR, IS )
Label text.
TLA_UNDERSCORE ( CHAR, IS )
Charakter to be used to determine the underscore position
within the string. The charakter following the first
occurance of this one will become the shortcut.
Default: "_" (underscore).
TLA_KEY ( CHAR, G )
The shortcut key of this label.
IA_FONT, TLA_FONT ( *struct TextFont, IS )
Font to be used for rendering.
TLA_DRAWINFO, SYSIA_DRAWINFO ( *struct DrawInfo, IS )
When not using TLA_FONT, pass here the DrawInfo of
the screen the gadgets window should/is open. This ensures
correct calculation of the labels dimensions.
IA_MODE, TLA_MODE ( UBYTE, IS )
Drawing mode to be used when rendering the text.
IA_FGPEN, TLA_FGPEN ( UBYTE, IS )
IA_BGPEN, TLA_BGPEN ( UBYTE, IS )
Pen numbers to be used as foreground and background pens.
Defaults to BLOCKPEN and BACKGROUNDPEN.
TLA_ADJUSTMENT ( BYTEBITS, IS )
Defines the adjustment for IM_DRAWFRAME. See there for
further information. This effects only IM_DRAWFRAME.
Default: center both vertical and horizontal.
BUGS
textlabel.image may not correctly handle all fonts rendering
left or above to the starting point. The image's dimensions
are not set properly then, too.
Also kerning arround the underscore may not work sufficiently.
NOTE
Do not set width or hight! IA_WIDTH and IA_HEIGHT are getable
only. Setting these attributes may or may not confuse the
system. This may change somewhen, so do not depent on this
behaviour.
textlabel.image/IM_DRAWFRAME textlabel.image/IM_DRAWFRAME
NAME
IM_DRAWFRAME -- Draw text label within a given frame.
FUNCTION
This method draws the text of the text label object within the
bounds of a given frame. The position within the frame
depents on TLA_ADJUST. Default is centered both
horizontal and vertical within the bounds.
TLADJUST_HLEFT
TLADJUST_HRIGHT
Adjust the text at the left (right) edge of the frame.
Default: center text between left and right edge.
TLADJUST_HTOP
TLADJUST_HBOTTOM
Adjust the text to the top (bottom) edge of the frame.
Default: center text between top and bottom of frame.
Out of each group (horizontal and vertical adjustment) you may
specify not more than one flag.
NOTE
Specifying more than one flag out of each adjustment group
may lead to unexcected results. Never rely on this result
since this may or may not change in furture.
RESULT
This method returns 1.